list = ['abcd',786,2.23,'zhangfeng',70.2]

tinylist = [123,'zhangfeng']

print(list)
print(list[0])
print(list[1:3])
print(list[2:])
print(tinylist * 2)
print(list + tinylist)

letters = ['c','h','e','c','k','i','o']
print(letters[1:4:2])

str = "z,h,a,n,g,f,e,n,g"
splitstr = str.split(",")
print(splitstr)

splitstr = splitstr[-1::-1]

output = ",".join(splitstr)
print(output)


a = set('1,2,3,4')
b = set('2,3')
print(a.union(a,b))
print(a.difference(a,b))